package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.SgcdssHistoryMapper;
import com.ruoyi.control.domain.SgcdssHistory;
import com.ruoyi.control.service.ISgcdssHistoryService;

/**
 * 束管-实时数据Service业务层处理
 * 
 * @author hcc
 * @date 2024-11-12
 */
@Service
public class SgcdssHistoryServiceImpl extends ServiceImpl<SgcdssHistoryMapper, SgcdssHistory> implements ISgcdssHistoryService //修改
{
    @Autowired
    private SgcdssHistoryMapper sgcdssHistoryMapper;

    /**
     * 查询束管-实时数据
     * 
     * @param sgcdssId 束管-实时数据主键
     * @return 束管-实时数据
     */
    @Override
    public SgcdssHistory selectSgcdssHistoryBySgcdssId(String sgcdssId)
    {
        return sgcdssHistoryMapper.selectSgcdssHistoryBySgcdssId(sgcdssId);
    }

    /**
     * 查询束管-实时数据列表
     * 
     * @param sgcdssHistory 束管-实时数据
     * @return 束管-实时数据
     */
    @Override
    public List<SgcdssHistory> selectSgcdssHistoryList(SgcdssHistory sgcdssHistory)
    {
        return sgcdssHistoryMapper.selectSgcdssHistoryList(sgcdssHistory);
    }

    /**
     * 新增束管-实时数据
     * 
     * @param sgcdssHistory 束管-实时数据
     * @return 结果
     */
    @Override
    public int insertSgcdssHistory(SgcdssHistory sgcdssHistory)
    {
        return sgcdssHistoryMapper.insertSgcdssHistory(sgcdssHistory);
    }

    /**
     * 修改束管-实时数据
     * 
     * @param sgcdssHistory 束管-实时数据
     * @return 结果
     */
    @Override
    public int updateSgcdssHistory(SgcdssHistory sgcdssHistory)
    {
        return sgcdssHistoryMapper.updateSgcdssHistory(sgcdssHistory);
    }

    /**
     * 批量删除束管-实时数据
     * 
     * @param sgcdssIds 需要删除的束管-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteSgcdssHistoryBySgcdssIds(String[] sgcdssIds)
    {
        return sgcdssHistoryMapper.deleteSgcdssHistoryBySgcdssIds(sgcdssIds);
    }

    /**
     * 删除束管-实时数据信息
     * 
     * @param sgcdssId 束管-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteSgcdssHistoryBySgcdssId(String sgcdssId)
    {
        return sgcdssHistoryMapper.deleteSgcdssHistoryBySgcdssId(sgcdssId);
    }

    @Override
    public SgcdssHistory selectSgcdssHistoryByPointCode(String pointCode) {
        return sgcdssHistoryMapper.selectSgcdssHistoryByPointCode(pointCode);
    }
}
